package string;

/**
 * int length():
 * 获取字符串的长度（字符个数）
 */
public class LengthDemo {
    public static void main(String[] args) {
        String str="我爱java!";
        int len=str.length();
        System.out.println(len);


        String a="刘思甜是个吊毛ssb";
        int len1=a.length();
        System.out.println(len1);

        String b="刘思甜是个大帅比ss";
        int len2=b.length();
        System.out.println(len2);
    }
}
